import Vue from 'vue'
import App from './App'
import {
  showToast,
  showSuccess,
  showError
} from '@/utils/tips'

import strap from '@/utils/strap.js'


import store from './store'
Vue.prototype.$store = store


Vue.config.productionTip = false
App.mpType = 'app'

import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

// 挂载全局函数
Vue.prototype.$toast = showToast
Vue.prototype.$success = showSuccess
Vue.prototype.$error = showError


const app = new Vue({
  ...App,
  store,
  created:strap
})

// 引入请求封装，将app参数传递到配置中
require('@/utils/request.js')(app)

app.$mount()